package com.chopperdrop;

import android.app.Activity;
import android.os.Bundle;
import android.content.Intent;
import android.view.View;
import android.view.View.OnClickListener;
public class Cdrop extends Activity implements OnClickListener{
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
  
    	//clicklisteners
        View howtoButton = findViewById(R.id.how_to_button);
        howtoButton.setOnClickListener(this);
        View aboutButton = findViewById(R.id.about_button);
        aboutButton.setOnClickListener(this);
        View startButton = findViewById(R.id.start_button);
        startButton.setOnClickListener(this);
        View exitButton = findViewById(R.id.exit_button);
        exitButton.setOnClickListener(this);
        
      
            }
       
        
        public void onClick(View v){
        	switch (v.getId()){
        	case R.id.about_button:
        		Intent i = new Intent(this,About.class);
        		startActivity(i);
        		break;
        	case R.id.how_to_button:
        		Intent i1 = new Intent(this,HowTo.class);
        		startActivity(i1);
        		break;
        	case R.id.start_button:
        		setContentView(R.layout.play);
        		Intent i2 = new Intent(this,Playtime.class);
        		startActivity(i2);
    				break;
        	case R.id.exit_button:
				finish();
				break;
        	
        		//add more buttons
        	}
        }
    
    
}